<form id="s" action="" method="get">

<p><input id="s" name="s" type="text" value="<?php the_search_query();?>" /></p>

</form>